package cn.myschool.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author oldliu
 * @since 1.0
 */
public class ExamResult implements Serializable {
    private long id;
    private long stid;
    private long sbid;
    private float score;
    private Date examDate;

    private Student stu;
    private Subject subject;

    public long getId() {
        return id;
    }

    public Student getStu() {
        return stu;
    }

    public void setStu(Student stu) {
        this.stu = stu;
    }

    public Subject getSubject() {
        return subject;
    }

    public void setSubject(Subject subject) {
        this.subject = subject;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getStid() {
        return stid;
    }

    public void setStid(long stid) {
        this.stid = stid;
    }

    public long getSbid() {
        return sbid;
    }

    public void setSbid(long sbid) {
        this.sbid = sbid;
    }

    public Date getExamDate() {
        return examDate;
    }

    public void setExamDate(Date examDate) {
        this.examDate = examDate;
    }

    @Override
    public String toString() {
        return "ExamResult{" +
                "id=" + id +
                ", stid=" + stid +
                ", sbid=" + sbid +
                ", score=" + score +
                ", examDate=" + examDate +
                '}';
    }
}
